import { http } from "../utils/http";

export const getBothChatListApi = (userId,fromId) => {
  return http({
    url: `chat/both?userId=${userId}&fromId=${fromId}`,
    method: 'GET',
    data:{
      userId,
      fromId
    }
  })
}

export const sendMessageApi = (data) => {
  return http({
    url: 'chat',
    method: 'POST',
    data
  })
}